#ifndef CPUCLOCK_H
#define CPUCLOCK_H

#include <QObject>
#include <string>
#include <QTimer>
#include <QFile>
#include <QTextStream>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QRandomGenerator>
#include <QDebug>
#include <QString>

class CpuClock : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString getCpuClock READ getCpuClock NOTIFY clockChanged)

public:
    explicit CpuClock(QObject *parent = nullptr);
    ~CpuClock();

    QString getCpuClock();

private:
    void updateCpuClock();
    QTimer *timer = nullptr;

Q_SIGNALS:
    void clockChanged();
};

#endif // CPUCLOCK_H